Skip to content

Automatic updates: the beta channel can install at any hour - #496

Merged
nambok merged 1 commit into
mainfrom
feat/beta-any-hour
Nov 28, 2026
Merged

nambok merged 1 commit into
mainfrom
feat/beta-any-hour

Conversation

@nambok

@nambok nambok commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

The maintenance window was one hour a week or a day, so an install on the beta channel took at most one of the several betas a day. With the updater change in CoderHelm/coderhelm-platform (beta channel day: "any" with gap_hours), an admin can choose Any hour in Settings, System, Automatic updates.

Changes

  • dashboard/src/app/settings/system/page.tsx: the Day list offers Any hour (beta) on the beta channel, only when the updater returns gap_hours (an older updater has no "any"). With it, the Hour list becomes Hours between installs (1 to 24). Moving to Stable puts the window back on the default day, as the updater does. The window summary reads "any hour, at least N hours after the last install".
  • dashboard/src/lib/api.ts: AutoUpdateSettings.gap_hours, and day documents "any".
  • dashboard/e2e/selfhost.spec.ts: two tests.

Verification

  • e2e: saving Any hour sends day: "any", gap_hours: 4 and channel: "beta"; Stable never offers Any hour; an updater without gap_hours never offers it. The existing auto-update settings test (desktop and phone) still passes.
  • tsc --noEmit, npm run lint (UI lint, no hosted links).

The maintenance window was one hour a week or a day, so an install on the
beta channel took at most one of the several betas a day. On the beta
channel the window can now be Any hour: each new beta installs at the next
hourly check, at least the chosen number of hours after the last install.

- Settings, System, Automatic updates: Any hour (beta) in the Day list,
  offered only on the beta channel and only by an updater that returns
  gap_hours; with it the Hour list becomes Hours between installs.
- Moving to Stable puts the window back on a day, as the updater does.
- The window summary reads "any hour, at least N hours after the last
  install".
- e2e: saving Any hour sends day "any" and gap_hours; Stable never offers
  it; an older updater never offers it.
@nambok
nambok merged commit 1233f7c into main Nov 28, 2026
12 checks passed
@nambok
nambok deleted the feat/beta-any-hour branch November 28, 2026 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant